/* 排球图文详情页面样式 - 充满活力风格 */

/* 排球背景装饰 - 多个漂浮排球增加活力 */
.volleyball-decoration {
  position: fixed;
  width: 120px;
  height: 120px;
  /* 普通排球样式 - 白黄蓝色相间条纹 */
  background: linear-gradient(45deg, transparent 49.9%, rgba(255, 255, 255, 0.9) 49.9%, rgba(255, 255, 255, 0.9) 50.1%, transparent 50.1%),
              linear-gradient(-45deg, transparent 49.9%, rgba(255, 255, 255, 0.9) 49.9%, rgba(255, 255, 255, 0.9) 50.1%, transparent 50.1%),
              radial-gradient(circle, #ffffff 30%, #ffcc00 31%, #ffcc00 50%, #ffffff 51%, #ffffff 70%, #2196F3 71%, #2196F3 100%);
  border-radius: 50%;
  opacity: 0.2;
  z-index: 0;
  top: 20%;
  right: 10%;
  animation: float 15s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
  background-size: 100% 100%;
  background-position: center;
}

/* 多个排球装饰的样式变化 */
.volleyball-decoration:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 5%;
  background: linear-gradient(45deg, transparent 49.9%, rgba(255, 255, 255, 0.9) 49.9%, rgba(255, 255, 255, 0.9) 50.1%, transparent 50.1%),
              linear-gradient(-45deg, transparent 49.9%, rgba(255, 255, 255, 0.9) 49.9%, rgba(255, 255, 255, 0.9) 50.1%, transparent 50.1%),
              radial-gradient(circle, #ffffff 30%, #2196F3 31%, #2196F3 50%, #ffffff 51%, #ffffff 70%, #ffcc00 71%, #ffcc00 100%);
  opacity: 0.18;
  animation-delay: -5s;
  animation-duration: 20s;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.volleyball-decoration:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 80%;
  right: 15%;
  background: linear-gradient(45deg, transparent 49.9%, rgba(255, 255, 255, 0.9) 49.9%, rgba(255, 255, 255, 0.9) 50.1%, transparent 50.1%),
              linear-gradient(-45deg, transparent 49.9%, rgba(255, 255, 255, 0.9) 49.9%, rgba(255, 255, 255, 0.9) 50.1%, transparent 50.1%),
              radial-gradient(circle, #ffffff 30%, #ffcc00 31%, #ffcc00 50%, #ffffff 51%, #ffffff 70%, #2196F3 71%, #2196F3 100%);
  opacity: 0.16;
  animation-delay: -8s;
  animation-duration: 18s;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
}

.volleyball-decoration:nth-child(4) {
  width: 40px;
  height: 40px;
  top: 30%;
  left: 10%;
  background: linear-gradient(45deg, transparent 49.9%, rgba(255,255,255,0.9) 49.9%, rgba(255,255,255,0.9) 50.1%, transparent 50.1%),
              linear-gradient(-45deg, transparent 49.9%, rgba(255,255,255,0.9) 49.9%, rgba(255,255,255,0.9) 50.1%, transparent 50.1%),
              radial-gradient(circle, rgba(255,255,255,0.8) 30%, rgba(255,204,0,0.8) 31%, rgba(255,204,0,0.8) 50%, rgba(255,255,255,0.8) 51%, rgba(255,255,255,0.8) 70%, rgba(33,150,243,0.8) 71%, rgba(33,150,243,0.8) 100%);
  opacity: 0.15;
  animation-delay: -3s;
  animation-duration: 22s;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
}

/* 漂浮动画 */
@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(15px, 20px) rotate(10deg) scale(1.05);
  }
  50% {
    transform: translate(0, 30px) rotate(0deg) scale(1);
  }
  75% {
    transform: translate(-15px, 20px) rotate(-10deg) scale(0.95);
  }
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

/* 页面容器 - 活力橙色调背景 */
.video-detail-container {
  /* 活力橙色渐变背景 - 增强饱和度 */
  background-image: linear-gradient(135deg, #ffb74d 0%, #ffa000 30%, #ff6f00 60%, #f57c00 100%);
  min-height: 100vh;
  font-size: 14px;
  color: #333;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 活力装饰圆点 */
.vitality-dots {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}

.vitality-dots:nth-child(1) {
  top: -100px;
  right: -100px;
}

.vitality-dots:nth-child(2) {
  bottom: -150px;
  left: -150px;
}

/* 图文展示区域 - 替代原视频播放区域 */
.video-player-container {
  position: relative;
  width: 100%;
  background-color: #f0f0f0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 8px;
}

.image-container {
  position: relative;
  width: 100%;
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 图片切换时的过渡效果 */
.main-image:active {
  transform: scale(0.98);
}

/* 图片导航指示器 */
.image-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.indicator-dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: #fff;
  background: linear-gradient(90deg, #ffcc00, #07c160);
}

/* 图片切换按钮 */
.image-nav-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 10;
}

.nav-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.nav-button::after {
  border: none;
}

.nav-button:hover {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  transform: scale(1.1);
}

.nav-button.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.nav-button.prev {
  transform: translateX(-5px);
}

.nav-button.next {
  transform: translateX(5px);
}

/* 图文信息区域 */
.video-info {
  padding: 16px;
  background-color: white;
  margin: 8px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
  animation: titlePop 0.5s ease-out;
  background: linear-gradient(135deg, #ffcc00 0%, #ff9a44 30%, #ff6b00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 标题弹出动画 */
@keyframes titlePop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.video-meta {
  color: #666;
  font-size: 12px;
  margin-bottom: 12px;
}

.meta-item {
  margin-right: 8px;
}

.meta-separator {
  color: #ccc;
  margin: 0 4px;
}

.video-description {
  line-height: 1.8;
  color: #555;
  padding: 16px 20px;
  background-color: #fff9f0;
  border-radius: 20px;
  border-left: 6px solid #ff6b00;
  position: relative;
  overflow: hidden;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
  transition: all 0.3s ease;
}

/* 关键词悬停效果 */
.video-description strong:hover {
  color: #ff9a44;
  transform: scale(1.05);
  display: inline-block;
  text-shadow: 0 2px 4px rgba(255, 107, 0, 0.2);
}

/* 聊天框气泡效果 */
.video-description::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -16px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 16px 12px 0;
  border-color: transparent #fff9f0 transparent transparent;
  z-index: 1;
  transition: all 0.3s ease;
}

.video-description::after {
  content: '';
  position: absolute;
  top: 18px;
  left: -20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 20px 14px 0;
  border-color: transparent rgba(255, 107, 0, 0.08) transparent transparent;
  z-index: 0;
}

/* 图文详情区域 */
.video-details {
  background-color: white;
  margin: 8px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
  background: linear-gradient(135deg, #ffcc00 0%, #ff9a44 30%, #ff6b00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #07c160;
}

.detail-item {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  width: 80px;
  color: #666;
}

.detail-value {
  flex: 1;
}

/* 教学要点 */
.video-key-points {
  background-color: white;
  margin: 6px;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.key-points-list {
  margin-top: 8px;
}

.key-point-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.key-point-item:hover {
  transform: translateX(5px);
}

.key-point-item:last-child {
  border-bottom: none;
}

.key-point-index {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ff6b00, #ff9a44);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.2);
}

.key-point-content {
  flex: 1;
  line-height: 1.6;
  font-size: 14px;
  position: relative;
  padding: 10px 14px;
  background-color: #fff9f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 3px solid #ff9a44;
}

/* 排球图标 */
.key-point-content::before {
  content: '🏐';
  margin-right: 6px;
  font-size: 14px;
  vertical-align: middle;
}

/* 鼠标悬停时的背景变化 */
.key-point-item:hover .key-point-content {
  background-color: #fff1e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

/* 底部按钮区域 */
.bottom-buttons {
  padding: 16px;
  background-color: white;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 20px 20px 0 0;
  z-index: 100;
}

.practice-button {
  background: linear-gradient(135deg, #07c160, #1aad19);
  color: white;
  border-radius: 28px;
  font-size: 17px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  border: none;
  width: 100%;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 按钮光效 */
.practice-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 2s infinite;
}

/* 按钮闪光动画 */
@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

.practice-button:active {
  transform: translateY(3px);
  box-shadow: 0 3px 10px rgba(7, 193, 96, 0.3);
}

/* 适配不同屏幕尺寸 */
@media screen and (min-width: 768px) {
  .main-image {
    max-height: 500px;
    margin: 0 auto;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-info,
.video-details,
.video-key-points,
.bottom-buttons {
  animation: fadeIn 0.3s ease-out;
}

.video-details {
  animation-delay: 0.1s;
}

.video-key-points {
  animation-delay: 0.2s;
}

.bottom-buttons {
  animation-delay: 0.4s;
}
